
package com.naqel.shipment;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>StickerSize的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * <p>
 * <pre>
 * &lt;simpleType name="StickerSize">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="FourMEightInches"/>
 *     &lt;enumeration value="FourMSixthInches"/>
 *     &lt;enumeration value="FourMFourInches"/>
 *     &lt;enumeration value="FourMSevenInches"/>
 *     &lt;enumeration value="FourMSixthInchesFragile"/>
 *     &lt;enumeration value="DunyanaLabel4x4"/>
 *     &lt;enumeration value="ExpressLabel4x6Inches"/>
 *     &lt;enumeration value="A4"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "StickerSize")
@XmlEnum
public enum StickerSize {

    @XmlEnumValue("FourMEightInches")
    FOUR_M_EIGHT_INCHES("FourMEightInches"),
    @XmlEnumValue("FourMSixthInches")
    FOUR_M_SIXTH_INCHES("FourMSixthInches"),
    @XmlEnumValue("FourMFourInches")
    FOUR_M_FOUR_INCHES("FourMFourInches"),
    @XmlEnumValue("FourMSevenInches")
    FOUR_M_SEVEN_INCHES("FourMSevenInches"),
    @XmlEnumValue("FourMSixthInchesFragile")
    FOUR_M_SIXTH_INCHES_FRAGILE("FourMSixthInchesFragile"),
    @XmlEnumValue("DunyanaLabel4x4")
    DUNYANA_LABEL_4_X_4("DunyanaLabel4x4"),
    @XmlEnumValue("ExpressLabel4x6Inches")
    EXPRESS_LABEL_4_X_6_INCHES("ExpressLabel4x6Inches"),
    @XmlEnumValue("A4")
    A_4("A4");
    private final String value;

    StickerSize(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static StickerSize fromValue(String v) {
        for (StickerSize c: StickerSize.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
